<form class="form-horizontal" role="form" action="#" method="post">
	<div class="form-group">
		<label for="prsh_nama" class="col-sm-2 control-label">Nama Perusahaan</label>
		<div class="col-sm-4"><input type="text" class="form-control" id="prsh_nama" name="prsh_nama" value="<?=@$data_perusahaan->prsh_nama;?>"></div>
	</div>
	<div class="form-group">
		<label for="prsh_alamat" class="col-sm-2 control-label">Alamat</label>
		<div class="col-sm-4"><input type="text" class="form-control" id="prsh_alamat" name="prsh_alamat" value="<?=@$data_perusahaan->prsh_alamat;?>"></div>
	</div>
	<div class="form-group">
		<label for="prsh_kota" class="col-sm-2 control-label">Kota</label>
		<div class="col-sm-4"><input type="text" class="form-control" id="prsh_kota" name="prsh_kota" value="<?=@$data_perusahaan->prsh_kota;?>"></div>
	</div>
	<div class="form-group">
		<label for="prsh_telepon" class="col-sm-2 control-label">Telepon</label>
		<div class="col-sm-4"><input type="text" class="form-control" id="prsh_telepon" name="prsh_telepon" value="<?=@$data_perusahaan->prsh_telepon;?>"></div>
	</div>
	<div class="form-group">
		<label for="prsh_fax" class="col-sm-2 control-label">Fax</label>
		<div class="col-sm-4"><input type="text" class="form-control" id="prsh_fax" name="prsh_fax" value="<?=@$data_perusahaan->prsh_fax;?>"></div>
	</div>
	<div class="form-group">
		<label for="prsh_email" class="col-sm-2 control-label">Email</label>
		<div class="col-sm-4"><input type="email" class="form-control" id="prsh_email" name="prsh_email" value="<?=@$data_perusahaan->prsh_email;?>"></div>
	</div>
	<div class="form-group">
		<label for="prsh_posisi" class="col-sm-2 control-label">Posisi</label>
		<div class="col-sm-4"><input type="text" class="form-control" id="prsh_posisi" name="prsh_posisi" value="<?=@$data_perusahaan->prsh_posisi;?>"></div>
	</div>
	<div class="form-group">
		<label for="prsh_logo" class="col-sm-2 control-label">Logo</label>
		<div class="col-sm-4"><input type="file" class="form-control" id="prsh_logo" name="prsh_logo" value="<?=@$data_perusahaan->prsh_logo;?>"></div>
	</div>
	<div class="form-group">
		<div class="col-sm-offset-2 col-sm-4 text-center">
			<button type="button" class="btn btn-default" id="prsh_save">Simpan</button>
			<button type="reset" class="btn btn-default" id="prsh_reset">Batal</button>
		</div>
	</div>
</form>
<script>
	$(function() {
		$('#prsh_save').click(function(event) {
			var params = new Object();
			params.form_data=$('form').serializeObject();
			params=JSON.stringify(params);
			$.ajax({
				url : 'c_s_perusahaan/save',
				method : 'post',
				data : {params:params},
				success : function(response){
					var res = $.parseJSON(response);
					if(res.Result=='OK'){
						$.createAlert('Success','Data berhasil disimpan.', 'Ok');
					}else{
						$.createAlert('Failure','Data gagal disimpan.', 'Ok');
					}
				}
			});
			event.preventDefault();
		});
	});
</script>